// 1.app广告。点击关闭，隐藏app这个div
// var close = document.getElementsByClassName('bank-1')[0];

// var bank = document.getElementsByClassName('bank')[0]

// close.onclick = function(){
//     bank.style.disply = 'none';
// }

var close = document.getElementsByClassName('bank-1')[0];

var app = document.getElementsByClassName('bank')[0]
close.onclick = function(){
    app.style.display = 'none';
}



// 导航条设置  导航条颜色改变
var search_header = document.getElementsByClassName('nav')[0];
window.onscroll = function(){
    var scroll_height = window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;
    console.log(scroll_height);
    if(scroll_height >= 200){
        search_header.style.backgroundColor = 'orange';
    }
    else{
        search_header.style.backgroundColor = 'transparent';
    }
}